package com.scs.application.modules.sys.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
* @Description：yml spring 下所有属性
*/
@Data
@ConfigurationProperties(prefix = "spring")
@Component
public class SpringYmlProperties {
    private Datasource datasource = new Datasource() ;

    /**
    * @Description：datasource 节点
    */
    @Data
    public class Datasource {
        /**
        * @Description：username
        */
        private String username;
        /**
        * @Description：username
        */
        private String password;
    }


}
